home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global g1erSprLoc, gNumSpr
- curseur(2)
- repeat with i = g1erSprLoc to g1erSprLoc + 17
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- end
-
- on mouseUp
- global g1erSprLoc, gNumSpr
- curseur(1)
- set monNumSpr to -2
- repeat with i = g1erSprLoc to g1erSprLoc + 17
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if monNumSpr = gNumSpr then
- MouseClick(gNumSpr - 21)
- else
- pass()
- end if
- end
-
- on MouseClick monSpr
- global gListSuj, gListCod, g1erSprLoc, gNumSpr, gSujet0, gSujet1, gCDpath, gLocLabel, gLabel, gVersion, gSurvolPrec
- set gSujet0 to getAt(gListSuj, monSpr)
- set moncod to gSujet0(Le_Code)
- if moncod = "HSN" then
- set gSujet1 to 0
- set the fileName of cast "FICHE SUJET" to gVersion & "S" & moncod & "F.PIC"
- put gVersion & "S" & moncod & "F.PIC"
- set the visible of sprite 3 to 1
- set gLocLabel to "SU:OU FA"
- set gLabel to "SU:IN GE"
- continue()
- curseur(-1)
- else
- beep()
- set gSurvolPrec to -1
- end if
- end
-